from pymouse import *
from pykeyboard import *
import time

m = PyMouse()
k = PyKeyboard()
menu = {'up': 38, 'down': 40, 'left': 37, 'right': 39, 'esx': 27,
        'F1': 112, 'F2': 113, 'F3': 114, 'F4': 115, 'F5': 116, 'F6': 117, 'F7': 118, 'F8': 119, 'F9': 120, 'F10': 121,
        'F11': 122, 'F12': 123, 'enter': 13, 'backspace': 8, 'tab': 9, 'shift': 16, 'control': 17}

x = int(2122 / 2)
x1 = int(1600 / 2)
y = int(2122 / 2)
m.click(x1, y, 1, 2)
time.sleep(1)
k.tap_key('a', 5, 0.1)
k.tap_key(k.space_key)
k.tap_key(37, 5, 0.1)
k.press_keys([k.control_key, k.shift_key])
k.release_key(k.control_key)
k.release_key(k.shift_key)
k.tap_key('a')
time.sleep(1)

m.click(int(2100 / 2), int(900 / 2), 1, 2)
time.sleep(5)

m.click(int(2300 / 2), int(900 / 2), 1, 2)
time.sleep(1)
